package com.xu.sso.web.service.convert;

import com.xu.sso.db.model.base.Department;
import com.xu.sso.web.model.request.UpdateDepRequest;

public class ManageConvert {

    public static Department convert(UpdateDepRequest request) {
        Department department = new Department();
        department.setDepDesc(request.getDepDesc());
        department.setDepName(request.getDepName());
        department.setPid(request.getPid());
        department.setPname(request.getPname());
        department.setId(request.getId());
        return department;
    }

}
